##parameters=svn_uri, svn_username, svn_password, modelIdentity, new_identities=False

from Products.KnowledgeEngine.Accessories.SubversionAccessory.SubversionAccessory import subversion_model_import

subversion_model_import( context, svn_uri, svn_username, svn_password, modelIdentity, new_identities=(new_identities == 'Y') )

return context.REQUEST.RESPONSE.redirect( context.absolute_url() + "?portal_status_message=Model imported" )
